﻿using System;
using System.Collections.Generic;
using System.Text;
using WhatCatch.Core2.Model;

namespace WhatCatch.Core2
{
    public interface ICatchQueue
    {
        /// <summary>
        /// 任务入队
        /// </summary>
        /// <returns></returns>
        bool TaskEnqueue(CatchTask task);
        /// <summary>
        /// 任务出队
        /// </summary>
        /// <returns></returns>
        CatchTask TaskDequeue();

        /// <summary>
        /// 结果入队
        /// </summary>
        /// <returns></returns>
        bool ResultEnqueue(CatchResult result);
        /// <summary>
        /// 结果出队
        /// </summary>
        /// <returns></returns>
        CatchResult ResultDequeue();
    }
}
